package org.jeecg.modules.nikeProject.service;

import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.nikeProject.entity.SportsProjectFile;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.nikeProject.entity.vo.AddProjectFileVO;
import org.jeecg.modules.nikeProject.entity.vo.OssFileVO;

import java.util.List;

/**
 * @Description: 案例上传视频，图片
 * @Author: jeecg-boot
 * @Date:   2024-12-12
 * @Version: V1.0
 */
public interface ISportsProjectFileService extends IService<SportsProjectFile> {

    void updateOssId(String fileId, String projectId, String username, String fileType);

    void addOssFile(String fileId, String projectId, String username, String fileType, String sourceTyp);

    List<SportsProjectFile> getFileList(String projectId, String fileType);

    void updateFileList(List<SportsProjectFile> sportsProjectFiles, String username);

    Result<?> addProjectFile(AddProjectFileVO sportsProjectFile);

    List<SportsProjectFile> getProjectFiles(String projectId, List<String> workInfoSchoolIds);

    List<SportsProjectFile> getProjectFilesByType(String projectId, String fileType);
    List<SportsProjectFile> getProjectFilesByTypeAndSourceType(String projectId, String fileType, String sourceType);

    void batchOssFile(List<OssFileVO> list, String projectId, String username, String fileType);
}
